<%--
  Created by IntelliJ IDEA.
  User: 18902
  Date: 2020/10/17
  Time: 23:04
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<!DOCTYPE html>

<HTML xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,initial-scale=1.0,width=device-width" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <meta http-equiv=Content-Type content="text/html; charset=utf-8">
    <link href="${pageContext.request.contextPath}/css/style.css"
          type=text/css rel=stylesheet>
    <link href="${pageContext.request.contextPath}/css/boot-crm.css"
          type=text/css rel=stylesheet>
    <script src=
                    "${pageContext.request.contextPath}/js/jquery-1.11.3.min.js">
    </script>
    <title>宿舍管理系统首页</title>
</head>

<body class="shouye">
<div>
    <h1 class="hy">欢迎进入宿舍管理系统首页</h1>
</div>
<div class="part1">
    <img src="images/laba.jpg" width="150px" height="90px">
</div>
<div class="gonggao">
    <div class="gonggao-left">
        系统公告:
    </div>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <div class="rolltext">
        <ul>
            <li>【1】各栋热水设施将于1月24 日-2 月26 日关闭，北区3A、3B 热水设施开放，开放时间为每天16:00-19:OO。
                北区留校学生可到北区3A、3B 各层公共洗澡间或南区1栋( 男)、5栋(女) 洗澡。</li>
            <li>【2】请勿在寝室内存放电脑、数码产品、手机等贵重物品。出门一定要检查寝室门窗是否关好。</li>
            <li>【3】学校将对学生宿舍寒假用电收取电费。请同学们注意用电安全，寝室无人时关闭空调开关，拔掉插头，不要私
                自接空调电源</li>
            <li>【4】寒假宿舍门禁不设常开时段，由学生刷卡进出，23点后仍不能刷卡出大门。</li>
        </ul>
    </div>
</div>
<div class="tlbt">
    <form action="${pageContext.request.contextPath }/toLogin.action">
        <td><input type="submit"  value="进入登录页面" style="width: 140px;height: 44px;border: 2px #4b4b4b double;background-color: #c4e3f3;font-size: 20px"></td>

    </form>
</div>

<div class="trbt">
    <form action="${pageContext.request.contextPath }/toRegister.action">
        <td><input type="submit"  value="进入注册页面" style="width: 140px;height: 44px;border: 2px #4b4b4b double;background-color: #c4e3f3;font-size: 20px"></td>
    </form>
</div>

</body>
<script src=
                "${pageContext.request.contextPath}/js/jquery-1.11.3.min.js">
</script>

<script type="text/javascript">

    function AutoScroll(obj) {

        $(obj).find("ul:first").animate({
            marginTop: "-25px"
        }, 500, function() {
            $(this).css({ marginTop: "0px" }).find("li:first").appendTo(this);
        });
    }
    $(function() {
        var myar = setInterval('AutoScroll(".rolltext")', 1000)
        $(".rolltext").hover(function() { clearInterval(myar); }, function() { myar = setInterval('AutoScroll(".rolltext")', 1000) });
    });
    // function jumpToLogin() {
    //     window.location.href='login.jsp';
    // }
</script>

</html>